<?php
/**
 * Descript:
 * User: lufeng501206@gmail.com
 * Date: 2017/4/16 20:12
 */

namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;

class BaseController extends Controller
{
    public function getUserAuth()
    {
        $userLists = config('jinbell.users');
        $userLists = rebulidDataIndex($userLists,'name');
        $account = session('account');
        $authData = $userLists[$account];
        return $authData;
    }
}